#include <iostream>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

using namespace std;

int main()
{
    cv::namedWindow("Example2", cv::WINDOW_AUTOSIZE);
    cv::VideoCapture cap;
    cap.open("../../resource/video/test_for_car.mp4");
    cv::Mat frame;
    for (;;)
    {
        cap >> frame;
        if (frame.empty())
            break;
        cv::imshow("Example2", frame);
        if (cv::waitKey(33) >= 0 )
            break;
    }
    return 0;
}
